PROJECT_NAME := mdbook-template

total: # 统计总命令数量
	@find ./src/linux/ -type f|grep -v index|wc -l

build: #  build
	@echo "Start to Build..."
	@mdbook clean
	@mdbook build
	@rm -rf dist/*
	@mkdir -p dist
	@tar -czvf dist/${PROJECT_NAME}.tar.gz -C book/ .
	@mdbook clean
	@echo "Build Successfully!"

start: #  start
	@echo "Start to App..."
	@mdbook clean
	@mdbook serve